package com.dsg.entity.oil;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author system
 * @Date 2020-06-29
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_oil_product")
@ApiModel(value = "DsgOilProduct对象", description = "油公司產品")
public class DsgOilProduct implements Serializable {
    private static final long serialVersionUID = 7654971143267352069L;

    /**
     * 主键
     */
    @TableId(value = "OID")
    @ApiModelProperty(value = "主键", name = "oid")
    private String oid;

    /**
     * 油公司
     */
    @TableField(value = "OIL_COM")
    @ApiModelProperty(value = "油公司", name = "oilCom")
    private String oilCom;

    /**
     * 油种
     */
    @TableField(value = "OIL_TYPE")
    @ApiModelProperty(value = "油种", name = "oilType")
    private Integer oilType;

    /**
     * 平油/貴油
     */
    @TableField(value = "OIL_GRADE")
    @ApiModelProperty(value = "平油/貴油", name = "oilGrade")
    private Integer oilGrade;

    /**
     * 產品編號
     */
    @TableField(value = "PRODUCT_NO")
    @ApiModelProperty(value = "產品編號", name = "productNo")
    private String productNo;

    /**
     * 產品名稱
     */
    @TableField(value = "PRODUCT_NAME")
    @ApiModelProperty(value = "產品名稱", name = "productName")
    private String productName;

    /**
     * 是否享受油咭折扣 0:否:是
     */
    @TableField(value = "IS_CARD_DIS")
    @ApiModelProperty(value = "是否享受油咭折扣 0:否:是", name = "isCardDis")
    private Integer isCardDis;

    /**
     * 是否享受油劵折扣 0:否:是
     */
    @TableField(value = "IS_COUPON_DIS")
    @ApiModelProperty(value = "是否享受油劵折扣 0:否:是", name = "isCouponDis")
    private Integer isCouponDis;

    /**
     * 企業編號
     */
    @TableField(value = "ENT_CODE")
    @ApiModelProperty(value = "企業編號", name = "entCode")
    private String entCode;

    /**
     * 创建人
     */
    @TableField(value = "CREATER")
    @ApiModelProperty(value = "創建人", name = "creater")
    private String creater;

    /**
     * 創建時間
     */
    @TableField(value = "CREATE_TIME")
    @ApiModelProperty(value = "創建時間")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "UPDATER")
    @ApiModelProperty(value = "更新人", name = "updater")
    private String updater;

    /**
     * 更新時間
     */
    @TableField(value = "UPDATE_TIME")
    @ApiModelProperty(value = "更新時間", name = "updateTime")
    private Date updateTime;

    /************************枚舉**********************/
    public enum AppStatus {
        isCardDisNo(0), isCardDisYes(1), isCouponDisNo(0), isCouponDisYes(1),
        flat(1), expensive(2);
        Integer code;

        AppStatus(int code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }
}
